package com.szpx.mapper;

import com.szpx.entity.LJK.LJKCoach;
import com.szpx.entity.LJK.Reserve;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LJKReserveMapper {
    /**
     * 插入预约记录
     * @param reserve 预约记录
     * @return 插入成功的记录数
     */
    int insert(Reserve reserve);

    /**
     * 根据教练ID查询预约记录
     * @param coachId 教练ID
     * @return 预约记录列表
     */
    List<Reserve> selectByCoachId(Long coachId);

    int updateStatus(Long id, int status);


    List<Reserve> selectAll(Reserve reserve);
}
